<?
//引入所有子系统信息
include_once("../../../common/script/extender_import.php");


//**获取当前板块资料，必然载入，后续很多读取板块数据库的表格，都写成动态的了。
$_plate=$plate['milk'];


//获取板块的设置
include_once("../model/setting.php");



//根据页面信息，组装查找语句
//include_once("model/set_page.php");


//根据页面数量信息，筛选信息，创造url，供页码,跳转等使用
include_once("script/set_url.php");



//获取单条数据，这个应该可以卸载model中
$data=select_one_line_all_items($table_prefix."product_data","nid = '".$_REQUEST['nid']."'");

$milk_checked_list=explode(",",$data['milk']);


//生成一周的数组，用于给data w 使用
$week_array=array('星期日','星期一','星期二','星期三','星期四','星期五','星期六');

$product_list=select_lines_all_items($table_prefix.$_plate['table']['data'],"","status != '已删除' or status is null","");


$milk_schdule_list=select_lines_all_items($table_prefix."product_schedule","",
    "product_nid = '{$_REQUEST['nid']}'","");

$milk_schdule_list_1darray=transform_2darray_in_1darray_with_new_key($milk_schdule_list,'apply_date',"milk_name");

?>

